package socialplaytime;

import javax.swing.JOptionPane;

public class SocialPlaytimeMain implements SocialPlaytimeConstants{
	
	private static String studentName;
	
	public SocialPlaytimeMain() {
		PlaySet playSet = new PlaySet();
		do {
			//JOptionPane that asks for the user name.
			studentName = JOptionPane.showInputDialog(NAME_QUESTION_LABEL);
		}
		while (studentName != null && !playSet.searchName(studentName));
		//String studentName = JOptionPane.showInputDialog(NAME_QUESTION_LABEL);
		@SuppressWarnings("unused")
		PlayMenuGUI gui = new PlayMenuGUI(studentName, playSet);
		
	}

}
